﻿using System.ServiceModel;
using Common;

namespace EditorServiceLibrary
{
    [ServiceContract]
    public interface IEditorService
    {
        [OperationContract]
        Response GetArticlesFromWareHouse(int pageIndex, int pageSize);
        [OperationContract]
        Response SetArticleForEditor(string articleID, string editorID);
        [OperationContract]
        Response GetArticlesWithReviews(string editorID);
        [OperationContract]
        Response GetReviews(string editorID, bool newOnly);
        [OperationContract]
        Response GetCheckedArticles(string editorID, int pageIndex, int pageSize);
        [OperationContract]
        Response AcceptArticle(string articleID);
        [OperationContract]
        Response ReviewerDecline(string articleID, string reviewID, string editorComment);
        [OperationContract]
        Response DeclineArticle(string articleID, string editorComment);
        [OperationContract]
        Response SendForRevision(string articleID, string reviewID, string editorComment);
        [OperationContract]
        Response MoveToArticlePortfolio(string articleID, string reviewID, string editorComment);
        [OperationContract]
        Response AcceptReview(string reviewID);
        [OperationContract]
        Response DeclineReview(string reviewID);
        [OperationContract]
        Response GetDeclinedArtiles(string editorID);
        [OperationContract]
        Response GetAcceptedArticles(string editorID);
    }
}